﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="role_edit.aspx.cs" Inherits="EDP.Application.Web.Role.role_edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('panel_main_grid_roleUser_ctl00_btn_query');
                __doPostBack('panel_main$grid_roleUser$ctl00$btn_query', '');
            }
        }
    </script>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel_main" runat="server" />
        <f:HiddenField ID="hide_UserIdList" runat="server" />
        <f:Panel ID="panel_main" Margin="0" BodyPadding="0" runat="server" ShowBorder="false" ShowHeader="false" AutoScroll="true" Layout="Region">
            <Items>
                <f:SimpleForm ID="from" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10" EnableCollapse="false" Margin="0" RegionPosition="Left" Width="350" LabelWidth="60" Layout="Column">
                    <Items>
                        <f:TextBox ID="tb_name" runat="server" Label="角色名称" BindName="Name" Margin="0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:TextBox ID="tb_numbers" runat="server" Label="角色编号" BindName="Numbers" Margin="10 0 0 0" ColumnWidth="100%" EmptyText="1-20个字母或数字" ShowRedStar="true" Readonly="true" />
                        <f:DropDownList ID="ddl_classify" runat="server" Label="所属分类" BindName="ClassifyId" EnableSimulateTree="true" EmptyText="选择角色分类" Margin="10 0 0 0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:NumberBox ID="tb_sort" runat="server" Label="排序号" BindName="SortNumber" Margin="10 0 0 0" ColumnWidth="100%"
                            NoDecimal="true" NoNegative="true" MinValue="0" MaxValue="9999" MaxLength="4" ShowRedStar="true" Required="true" />
                        <f:TextBox ID="tb_createUser" runat="server" Label="创建人" BindName="CreateUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_craeteTime" runat="server" Label="创建时间" BindName="CreateTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyUser" runat="server" Label="修改人" BindName="ModifyUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyTime" runat="server" Label="修改时间" BindName="ModifyTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="描述" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="150" />
                    </Items>
                    <Toolbars>
                        <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0" OnClick="btn_save_Click" />
                                <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                </f:SimpleForm>
                <f:Grid ID="grid_roleUser" runat="server" ShowHeader="false" DataKeyNames="ID" Margin="0" RegionPosition="Center" EnableCheckBoxSelect="false"
                    OnPageIndexChange="grid_roleUser_PageIndexChange" OnRowCommand="grid_roleUser_RowCommand"
                    SortField="PositionGradeLevels" SortDirection="DESC" OnSort="grid_roleUser_Sort">
                    <Toolbars>
                        <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                            <Items>
                                <f:TextBox ID="tb2" runat="server" EmptyText="部门名称/部门编号" QueryName="DepartmentKeyword" Margin="0" Width="150" />
                                <f:TextBox ID="tb1" runat="server" EmptyText="账号/姓名" QueryName="UserKeywrod" Margin="0 0 0 10" Width="100" />
                                <f:TextBox ID="tb3" runat="server" EmptyText="职位" QueryName="PositionTitle" Margin="0 0 0 10" Width="100" />
                                <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" />
                                <f:ToolbarFill runat="server" />
                                <f:Button ID="btn_add" runat="server" Text="添加用户" Icon="Add" Margin="0 10 0 0" EnablePostBack="false" />
                                <f:Button ID="btn_set" runat="server" Text="设置用户" Icon="GroupEdit" Margin="0 10 0 0" EnablePostBack="false" />
                                <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多..." EnablePostBack="false">
                                    <Menu runat="server" Margin="0">
                                        <f:MenuButton ID="btn_clear" runat="server" Margin="0" Text="清空用户" OnClick="btn_clear_Click" />
                                        <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" OnClick="btn_cache_Click" />
                                    </Menu>
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Account" Width="80" HeaderText="账号" />
                        <f:BoundField DataField="Name" DataToolTipField="Name" Width="80" HeaderText="姓名" />
                        <f:BoundField DataField="GenderName" SortField="GenderId" Width="65" HeaderText="性别" />
                        <f:BoundField DataField="OrganizationName" DataToolTipField="OrganizationName" ExpandUnusedSpace="true" HeaderText="机构" />
                        <f:BoundField DataField="DepartmentNumbers" DataToolTipField="DepartmentNumbers" Width="100" HeaderText="部门编号" />
                        <f:BoundField DataField="DepartmentName" DataToolTipField="DepartmentName" ExpandUnusedSpace="true" HeaderText="部门" />
                        <f:BoundField DataField="PositionTitle" DataToolTipField="PositionTitle" Width="120" HeaderText="职位" />
                        <f:BoundField DataField="PositionGradeName" SortField="PositionGradeLevels" Width="65" HeaderText="职级" />
                        <f:LinkButtonField ColumnID="lb_delete" Width="30" CommandName="delete" EnableLock="true" ToolTip="删除角色用户" CommandTitle="删除角色用户" Icon="Delete"
                            ConfirmTitle="删除角色用户" ConfirmText="是否删除该角色用户？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="win_setUser" runat="server" OnClose="win_setUser_Close" />
        <f:Window ID="win_addUser" runat="server" OnClose="win_addUser_Close" />
    </form>
</body>
</html>
